package com.wing.warehouse.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.product.model.entity.ProductDetail;
import com.wing.product.model.response.ProductDetailVO;
import com.wing.warehouse.model.entity.BoxLabel;
import com.wing.warehouse.model.response.BoxLabelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 料箱存储包装编码表-Dao
 *
 * @author
 */
@Mapper
public interface BoxLabelDao extends BaseMapper<BoxLabel> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<BoxLabelVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<BoxLabelVO> list4app(@Param("page") Page<BoxLabelVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    BoxLabelVO get4appById(Long id);

    /**
     * 查询库存明细
     * @return
     */
    List<BoxLabelVO> getBoxLabBySkuCodeAndWarehouseIdList(@Param("skuCode") String skuCode,@Param("warehouseId") Long warehouseId);

    BoxLabelVO getBoxLabBySkuAndWarehouseId(@Param("skuCode") String skuCode,@Param("warehouseId") Long warehouseId);
}
